﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {

	public float speed = 5;
	private float _x;
	private float _z;

	void Update () {

		_x = Input.GetAxis("Horizontal") * Time.deltaTime * speed;      
		_z = Input.GetAxis("Vertical") * Time.deltaTime * speed;  
		transform.position += new Vector3(_x, 0, _z);  
	}
}
